package com.msg.core.result;

import lombok.Getter;

@Getter
public enum ResultEnum implements RespEnum {

    //认证服务器异常
    UNSUPPORTED_GRANT_TYPE("1001","不支持的认证模式！"),
    INVALID_GRANT_EXCEPTION("1001","用户名或者密码错误！"),
    CLIENT_DENIED("1001","客户端认证失败！"),

    //认证失败
    UNAUTHORIZED("1001","token失效,请重新登录！"),
    //访问受限，授权过期
    ACCESS_DENIED("1002","权限不足，无法访问！"),

    //成功
    SUCCESS("200", "操作成功"),
    //失败
    ERROR("500", "操作失败"),
    //参数错误
    PARAM_ERROR("400", "参数错误");


    private String code;
    private String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
